home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Dt / Editor.h.z / Editor.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  16.3 KB  |  645 lines

  1. /*
  2.  * Editor.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* $XConsortium: Editor.h /main/cde1_maint/1 1995/07/17 18:29:34 drk $ */
  26. /*
  27.  *  (c) Copyright 1993, 1994 Hewlett-Packard Company
  28.  *  (c) Copyright 1993, 1994 International Business Machines Corp.
  29.  *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  30.  *  (c) Copyright 1993, 1994 Novell, Inc.
  31.  */
  32.  
  33. #ifndef _Dt_Editor_h
  34. #define _Dt_Editor_h
  35.  
  36. #include <Xm/Xm.h>
  37.  
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41.  
  42.  
  43. /*
  44.  * Constants
  45.  */
  46.  
  47. /* Sources of Help requests */
  48. /* Used with XmNhelpCallback */
  49.  
  50. #define DtEDITOR_HELP_EDIT_WINDOW        1
  51. #define DtEDITOR_HELP_STATUS_LINE        2
  52. #define DtEDITOR_HELP_STATUS_CURRENT_LINE    3
  53. #define DtEDITOR_HELP_STATUS_TOTAL_LINES    4
  54. #define DtEDITOR_HELP_STATUS_MESSAGE        5
  55. #define DtEDITOR_HELP_STATUS_OVERSTRIKE        6
  56. #define DtEDITOR_HELP_FORMAT_DIALOG        7
  57. #define DtEDITOR_HELP_FORMAT_LEFT_MARGIN    8
  58. #define DtEDITOR_HELP_FORMAT_RIGHT_MARGIN    9
  59. #define DtEDITOR_HELP_FORMAT_ALIGNMENT        10
  60. #define DtEDITOR_HELP_CHANGE_DIALOG        11
  61. #define DtEDITOR_HELP_CHANGE_FIND        12
  62. #define DtEDITOR_HELP_CHANGE_CHANGE        13
  63. #define DtEDITOR_HELP_SPELL_DIALOG        14
  64. #define DtEDITOR_HELP_SPELL_MISSPELLED_WORDS    15
  65. #define DtEDITOR_HELP_SPELL_CHANGE        16
  66.  
  67. /* Specifies the last line in the edit area */
  68. /* Used with DtEditorGoToLine */
  69. #define DtEDITOR_LAST_LINE         -999
  70.  
  71. /* Resource constants */
  72. #if defined(_TAV_FILE_FILTER_) /* Resources to handle DnD in a secure session */
  73. #ifndef DtNfilterProc
  74. #define DtNfilterProc            "filterProc"
  75. #endif
  76. #ifndef DtCFilterProc
  77. #define DtCFilterProc            "FilterProc"
  78. #endif
  79. #endif /* _TAV_FILE_FILTER_ */
  80.  
  81. #ifndef DtNautoShowCursorPosition
  82. #define DtNautoShowCursorPosition    XmNautoShowCursorPosition
  83. #endif
  84. #ifndef DtCAutoShowCursorPosition
  85. #define DtCAutoShowCursorPosition    XmCAutoShowCursorPosition
  86. #endif
  87. #ifndef DtNblinkRate
  88. #define DtNblinkRate                XmNblinkRate
  89. #endif
  90. #ifndef DtCBlinkRate
  91. #define DtCBlinkRate                XmCBlinkRate
  92. #endif
  93. #ifndef DtNbuttonFontList  
  94. #define DtNbuttonFontList                 XmNbuttonFontList
  95. #endif
  96. #ifndef DtCFontList 
  97. #define DtCFontList                 XmCFontList
  98. #endif
  99. #ifndef DtNcenterToggleLabel
  100. #define DtNcenterToggleLabel           "centerToggleLabel"
  101. #endif
  102. #ifndef DtCCenterToggleLabel
  103. #define DtCCenterToggleLabel           "CenterToggleLabel"
  104. #endif
  105. #ifndef DtNchangeAllButtonLabel
  106. #define DtNchangeAllButtonLabel           "changeAllButtonLabel"
  107. #endif
  108. #ifndef DtCChangeAllButtonLabel
  109. #define DtCChangeAllButtonLabel           "ChangeAllButtonLabel"
  110. #endif
  111. #ifndef DtNchangeButtonLabel
  112. #define DtNchangeButtonLabel           "changeButtonLabel"
  113. #endif
  114. #ifndef DtCChangeButtonLabel
  115. #define DtCChangeButtonLabel           "ChangeButtonLabel"
  116. #endif
  117. #ifndef DtNchangeFieldLabel
  118. #define DtNchangeFieldLabel           "changeFieldLabel"
  119. #endif
  120. #ifndef DtCChangeFieldLabel
  121. #define DtCChangeFieldLabel           "ChangeFieldLabel"
  122. #endif
  123. #ifndef DtNcolumns
  124. #define DtNcolumns                XmNcolumns
  125. #endif
  126. #ifndef DtCColumns
  127. #define DtCColumns                XmCColumns
  128. #endif
  129. #ifndef DtNcurrentLineLabel
  130. #define DtNcurrentLineLabel           "currentLineLabel"
  131. #endif
  132. #ifndef DtCCurrentLineLabel
  133. #define DtCCurrentLineLabel           "CurrentLineLabel"
  134. #endif
  135. #ifndef DtNcursorPosition
  136. #define DtNcursorPosition           XmNcursorPosition
  137. #endif
  138. #ifndef DtCCursorPosition
  139. #define DtCCursorPosition           XmCCursorPosition
  140. #endif
  141. #ifndef DtNcursorPositionVisible
  142. #define DtNcursorPositionVisible          XmNcursorPositionVisible
  143. #endif
  144. #ifndef DtCCursorPositionVisible
  145. #define DtCCursorPositionVisible           XmCCursorPositionVisible
  146. #endif
  147. #ifndef DtNdialogTitle
  148. #define DtNdialogTitle              "dialogTitle"
  149. #endif
  150. #ifndef DtCDialogTitle
  151. #define DtCDialogTitle              XmCDialogTitle
  152. #endif
  153. #ifndef DtNeditable  
  154. #define DtNeditable                 XmNeditable
  155. #endif
  156. #ifndef DtCEditable 
  157. #define DtCEditable                 XmCEditable
  158. #endif
  159. #ifndef DtNfindButtonLabel
  160. #define DtNfindButtonLabel           "findButtonLabel"
  161. #endif
  162. #ifndef DtCFindButtonLabel
  163. #define DtCFindButtonLabel           "FindButtonLabel"
  164. #endif
  165. #ifndef DtNfindChangeDialogTitle
  166. #define DtNfindChangeDialogTitle           "findChangeDialogTitle"
  167. #endif
  168. #ifndef DtCFindChangeDialogTitle
  169. #define DtCFindChangeDialogTitle           "FindChangeDialogTitle"
  170. #endif
  171. #ifndef DtNfindFieldLabel
  172. #define DtNfindFieldLabel           "findFieldLabel"
  173. #endif
  174. #ifndef DtCFindFieldLabel
  175. #define DtCFindFieldLabel           "FindFieldLabel"
  176. #endif
  177. #ifndef DtNformatAllButtonLabel
  178. #define DtNformatAllButtonLabel           "formatAllButtonLabel"
  179. #endif
  180. #ifndef DtCFormatAllButtonLabel
  181. #define DtCFormatAllButtonLabel           "FormatAllButtonLabel"
  182. #endif
  183. #ifndef DtNformatParagraphButtonLabel
  184. #define DtNformatParagraphButtonLabel    "formatParagraphButtonLabel"
  185. #endif
  186. #ifndef DtCFormatParagraphButtonLabel
  187. #define DtCFormatParagraphButtonLabel    "FormatParagraphButtonLabel"
  188. #endif
  189. #ifndef DtNformatSettingsDialogTitle
  190. #define DtNformatSettingsDialogTitle    "formatSettingsDialogTitle"
  191. #endif
  192. #ifndef DtCFormatSettingsDialogTitle
  193. #define DtCFormatSettingsDialogTitle    "FormatSettingsDialogTitle"
  194. #endif
  195. #ifndef DtNinformationDialogTitle
  196. #define DtNinformationDialogTitle    "informationDialogTitle"
  197. #endif
  198. #ifndef DtCInformationDialogTitle
  199. #define DtCInformationDialogTitle    "InformationDialogTitle"
  200. #endif
  201. #ifndef DtNinsertLabel
  202. #define DtNinsertLabel                   "insertLabel"
  203. #endif
  204. #ifndef DtCInsertLabel 
  205. #define DtCInsertLabel               "InsertLabel"
  206. #endif
  207. #ifndef DtNjustifyToggleLabel
  208. #define DtNjustifyToggleLabel           "justifyToggleLabel"
  209. #endif
  210. #ifndef DtCJustifyToggleLabel
  211. #define DtCJustifyToggleLabel           "JustifyToggleLabel"
  212. #endif
  213. #ifndef DtNlabelFontList  
  214. #define DtNlabelFontList                 XmNlabelFontList
  215. #endif
  216. #ifndef DtNleftAlignToggleLabel
  217. #define DtNleftAlignToggleLabel           "leftAlignToggleLabel"
  218. #endif
  219. #ifndef DtCLeftAlignToggleLabel 
  220. #define DtCLeftAlignToggleLabel           "LeftAlignToggleLabel"
  221. #endif
  222. #ifndef DtNleftMarginFieldLabel
  223. #define DtNleftMarginFieldLabel           "leftMarginFieldLabel"
  224. #endif
  225. #ifndef DtCLeftMarginFieldLabel 
  226. #define DtCLeftMarginFieldLabel           "LeftMarginFieldLabel"
  227. #endif
  228. #ifndef DtNmaxLength  
  229. #define DtNmaxLength                 XmNmaxLength
  230. #endif
  231. #ifndef DtCMaxLength  
  232. #define DtCMaxLength                 XmCMaxLength
  233. #endif
  234. #ifndef DtNmisspelledListLabel
  235. #define DtNmisspelledListLabel           "misspelledListLabel"
  236. #endif
  237. #ifndef DtCMisspelledListLabel 
  238. #define DtCMisspelledListLabel           "MisspelledListLabel"
  239. #endif
  240. #ifndef DtNoverstrike 
  241. #define DtNoverstrike            "overstrike"
  242. #endif
  243. #ifndef DtCOverstrike
  244. #define DtCOverstrike                  "Overstrike"
  245. #endif
  246. #ifndef DtNoverstrikeLabel
  247. #define DtNoverstrikeLabel           "overstrikeLabel"
  248. #endif
  249. #ifndef DtCOverstrikeLabel 
  250. #define DtCOverstrikeLabel           "OverstrikeLabel"
  251. #endif
  252. #ifndef DtNrightAlignToggleLabel
  253. #define DtNrightAlignToggleLabel           "rightAlignToggleLabel"
  254. #endif
  255. #ifndef DtCRightAlignToggleLabel 
  256. #define DtCRightAlignToggleLabel           "RightAlignToggleLabel"
  257. #endif
  258. #ifndef DtNrightMarginFieldLabel
  259. #define DtNrightMarginFieldLabel           "rightMarginFieldLabel"
  260. #endif
  261. #ifndef DtCRightMarginFieldLabel 
  262. #define DtCRightMarginFieldLabel           "RightMarginFieldLabel"
  263. #endif
  264. #ifndef DtNrows 
  265. #define DtNrows                    XmNrows
  266. #endif
  267. #ifndef DtCRows
  268. #define DtCRows                  XmCRows
  269. #endif
  270. #ifndef DtNscrollHorizontal 
  271. #define DtNscrollHorizontal        XmNscrollHorizontal
  272. #endif
  273. #ifndef DtCScroll
  274. #define DtCScroll                  XmCScroll
  275. #endif
  276. #ifndef DtNscrollLeftSide 
  277. #define DtNscrollLeftSide        XmNscrollLeftSide
  278. #endif
  279. #ifndef DtCScrollSide
  280. #define DtCScrollSide                  XmCScrollSide
  281. #endif
  282. #ifndef DtNscrollTopSide 
  283. #define DtNscrollTopSide        XmNscrollTopSide
  284. #endif
  285. #ifndef DtNscrollVertical 
  286. #define DtNscrollVertical        XmNscrollVertical
  287. #endif
  288. #ifndef DtNshowStatusLine
  289. #define DtNshowStatusLine        "showStatusLine"
  290. #endif
  291. #ifndef DtCShowStatusLine
  292. #define DtCShowStatusLine        "ShowStatusLine"
  293. #endif
  294. #ifndef DtNspellDialogTitle
  295. #define DtNspellDialogTitle        "spellDialogTitle"
  296. #endif
  297. #ifndef DtCSpellDialogTitle
  298. #define DtCSpellDialogTitle        "SpellDialogTitle"
  299. #endif
  300. #ifndef DtNspellFilter
  301. #define DtNspellFilter            "spellFilter"
  302. #endif
  303. #ifndef DtCSpellFilter
  304. #define DtCSpellFilter            "SpellFilter"
  305. #endif
  306. #ifndef DtNtextBackground 
  307. #define DtNtextBackground           "textBackground"
  308. #endif
  309. #ifndef DtCBackground 
  310. #define DtCBackground           XmCBackground
  311. #endif
  312. #ifndef DtNtextDeselectCallback 
  313. #define DtNtextDeselectCallback     "textDeselectCallback"
  314. #endif
  315. #ifndef DtNtextFontList  
  316. #define DtNtextFontList                 XmNtextFontList
  317. #endif
  318. #ifndef DtNtextForeground 
  319. #define DtNtextForeground           "textForeground"
  320. #endif
  321. #ifndef DtCForeground 
  322. #define DtCForeground           XmCForeground
  323. #endif
  324. #ifndef DtNtextSelectCallback 
  325. #define DtNtextSelectCallback       "textSelectCallback"
  326. #endif
  327. #ifndef DtNtextTranslations 
  328. #define DtNtextTranslations           XmNtextTranslations
  329. #endif
  330. #ifndef DtCTranslations 
  331. #define DtCTranslations           XmCTranslations
  332. #endif
  333. #ifndef DtCCallback 
  334. #define DtCCallback               XmCCallback
  335. #endif
  336. #ifndef DtNtopCharacter 
  337. #define DtNtopCharacter            XmNtopCharacter
  338. #endif
  339. #ifndef DtCTopCharacter  
  340. #define DtCTopCharacter            XmCTopCharacter
  341. #endif
  342. #ifndef DtNtotalLineCountLabel
  343. #define DtNtotalLineCountLabel           "totalLineCountLabel"
  344. #endif
  345. #ifndef DtCTotalLineCountLabel 
  346. #define DtCTotalLineCountLabel           "TotalLineCountLabel"
  347. #endif
  348. #ifndef DtNwordWrap 
  349. #define DtNwordWrap            XmNwordWrap
  350. #endif
  351. #ifndef DtCWordWrap  
  352. #define DtCWordWrap            XmCWordWrap
  353. #endif
  354.  
  355. #ifndef DtEditorHelpCallbackStruct
  356. #define DtEditorHelpCallbackStruct XmAnyCallbackStruct 
  357. #endif
  358. #ifndef DtEditorSelectCallbackStruct 
  359. #define DtEditorSelectCallbackStruct    XmAnyCallbackStruct
  360. #endif
  361. #ifndef DtEditorDeselectCallbackStruct 
  362. #define DtEditorDeselectCallbackStruct    XmAnyCallbackStruct
  363. #endif
  364.  
  365. /* Used with DtEditorChange() */
  366.  
  367. enum {
  368.     DtEDITOR_CURRENT_SELECTION,
  369.     DtEDITOR_NEXT_OCCURRENCE,
  370.     DtEDITOR_ALL_OCCURRENCES 
  371. };
  372.  
  373. /* Used with DtEditorFormat() */
  374.  
  375. enum {
  376.     DtEDITOR_FORMAT_ALL,
  377.     DtEDITOR_FORMAT_PARAGRAPH
  378. };
  379.  
  380. enum {
  381.     DtEDITOR_ALIGN_CENTER,
  382.     DtEDITOR_ALIGN_JUSTIFY,
  383.     DtEDITOR_ALIGN_LEFT,
  384.     DtEDITOR_ALIGN_RIGHT
  385. };
  386.  
  387. /* Used with DtNtextSelectCallback */
  388. enum {
  389.         DtEDITOR_TEXT_SELECT,
  390.         DtEDITOR_TEXT_DESELECT
  391. };
  392.  
  393. /*
  394.  * Types
  395.  */
  396. typedef enum _DtEditorErrorCode{
  397.         DtEDITOR_NO_ERRORS,
  398.         DtEDITOR_INVALID_TYPE,
  399.         DtEDITOR_INVALID_RANGE,
  400.         DtEDITOR_NULL_ITEM,
  401.         DtEDITOR_ILLEGAL_SIZE,
  402.         DtEDITOR_SPELL_FILTER_FAILED,
  403.         DtEDITOR_NO_TMP_FILE,
  404.         DtEDITOR_INVALID_FILENAME,
  405.         DtEDITOR_NONEXISTENT_FILE,
  406.         DtEDITOR_UNREADABLE_FILE,
  407.         DtEDITOR_READ_ONLY_FILE,
  408.         DtEDITOR_NO_FILE_ACCESS,
  409.         DtEDITOR_DIRECTORY,
  410.         DtEDITOR_CHAR_SPECIAL_FILE,
  411.         DtEDITOR_BLOCK_MODE_FILE,
  412.         DtEDITOR_UNWRITABLE_FILE,
  413.         DtEDITOR_WRITABLE_FILE,
  414.         DtEDITOR_SAVE_FAILED,
  415.     DtEDITOR_INSUFFICIENT_MEMORY,
  416.     DtEDITOR_NULLS_REMOVED
  417. } DtEditorErrorCode;
  418.  
  419. #ifdef _TAV_FILE_FILTER_
  420. /* The editor widget will make a call to the filter function
  421.  */
  422. typedef DtEditorErrorCode (*filterFileProc)(Widget w,
  423.             char* encryptedFile);
  424. #endif /* _TAV_FILE_FILTER_ */
  425.  
  426. /* Used with DtEditorChange() to specify Find and Change To strings */
  427.  
  428. typedef struct _DtEditorChangeValues {
  429.         char *find;
  430.         char *changeTo;
  431. } DtEditorChangeValues;
  432.  
  433. /* Used with DtEditorFormat() to specify left margin, right margin *
  434.  * and justification styles.                       */
  435.  
  436. typedef struct _DtEditorFormatSettings {
  437.     int        leftMargin;
  438.     int        rightMargin;
  439.     unsigned int    alignment;
  440. } DtEditorFormatSettings;
  441.  
  442. /* Types used to tag data to/from the editor widget */
  443.  
  444. typedef enum _DtEditorDataFormat{
  445.         DtEDITOR_TEXT,
  446.         DtEDITOR_WCHAR,
  447.         DtEDITOR_DATA
  448. } DtEditorDataFormat;
  449.  
  450.  
  451. /* Types used to pass data to/from the editor widget */
  452.  
  453. typedef struct _DtEditor_DataObj {
  454.         unsigned int    length;
  455.         void            *buf;
  456. } DtEditor_DataObj;
  457.  
  458. typedef struct _DtEditorContentRec {
  459.         DtEditorDataFormat type;
  460.         union   {
  461.                  char     *string;
  462.                  wchar_t  *wchar;
  463.          DtEditor_DataObj    data;
  464.         } value;
  465. } DtEditorContentRec;
  466.  
  467.  
  468. /* Widget class and instance */
  469.  
  470. typedef struct    _DtEditorClassRec    *DtEditorClass;
  471. typedef struct    _DtEditorRec        *DtEditorWidget;
  472.  
  473.  
  474. /*
  475.  * Data
  476.  */
  477.  
  478. /* Widget class */
  479.  
  480. externalref    WidgetClass        dtEditorWidgetClass;
  481.  
  482.  
  483. /*
  484.  * Functions
  485.  */
  486.  
  487. extern Widget DtCreateEditor(
  488.         Widget        parent,
  489.         char        *name,
  490.         ArgList        arglist,
  491.         Cardinal    argcount);
  492.  
  493. extern DtEditorErrorCode DtEditorAppend(
  494.         Widget        widget,
  495.         DtEditorContentRec *data);
  496.  
  497. extern DtEditorErrorCode DtEditorAppendFromFile(
  498.         Widget        widget,
  499.         char        *fileName);
  500.  
  501. extern Boolean DtEditorChange(
  502.         Widget            widget,
  503.         DtEditorChangeValues    *findChangeStrings,
  504.         unsigned int        instanceToChange);
  505.  
  506. extern Boolean DtEditorCheckForUnsavedChanges(
  507.         Widget        widget);
  508.  
  509. /* _TP_ALL_{ SPR000544 */
  510. extern Boolean DtEditorCheckUndoState(
  511.         Widget        widget);
  512. /* _TP_ALL_} */
  513.  
  514. extern Boolean DtEditorClearSelection(
  515.         Widget        widget);
  516.  
  517. extern Boolean DtEditorCopyToClipboard(
  518.         Widget        widget);
  519.  
  520. extern Boolean DtEditorCutToClipboard(
  521.         Widget        widget);
  522.  
  523. extern Boolean DtEditorDeleteSelection(
  524.         Widget        widget);
  525.  
  526. extern Boolean DtEditorDeselect(
  527.         Widget        widget);
  528.  
  529. extern void DtEditorDisableRedisplay(
  530.         Widget        widget);
  531.  
  532. extern void DtEditorEnableRedisplay(
  533.         Widget        widget);
  534.  
  535. extern Boolean DtEditorFind(
  536.         Widget        widget,
  537.         char *     find);
  538.  
  539. extern DtEditorErrorCode DtEditorFormat(
  540.         Widget        widget,
  541.         DtEditorFormatSettings    *formatSettings,
  542.         unsigned int    amountToFormat); 
  543.  
  544. extern DtEditorErrorCode DtEditorGetContents(
  545.         Widget        widget,
  546.         DtEditorContentRec *data,
  547.         Boolean        hardCarriageReturns,
  548.         Boolean        markContentsAsSaved);
  549.  
  550. extern XmTextPosition DtEditorGetInsertionPosition(
  551.         Widget        widget);
  552.  
  553. extern XmTextPosition DtEditorGetLastPosition(
  554.         Widget        widget);
  555.  
  556. extern Widget DtEditorGetMessageTextFieldID(
  557.         Widget        widget);
  558.  
  559. /* _TP_ALL_{ SPR002171 */
  560. extern Widget _DtEditorGetTextWidget(
  561.         Widget        widget);
  562. /* _TP_ALL_} */
  563.  
  564. extern void DtEditorGetSizeHints(
  565.         Widget        widget,
  566.         XSizeHints    *pHints);
  567.  
  568. extern void DtEditorGoToLine(
  569.         Widget        widget,
  570.         int    lineNumber);
  571.  
  572. extern DtEditorErrorCode DtEditorInsert(
  573.         Widget        widget,
  574.         DtEditorContentRec *data);
  575.  
  576. extern DtEditorErrorCode DtEditorInsertFromFile(
  577.         Widget        widget,
  578.         char        *fileName);
  579.  
  580. extern void DtEditorInvokeFindChangeDialog(
  581.         Widget        widget);
  582.  
  583. extern void DtEditorInvokeFormatDialog(
  584.         Widget        widget);
  585.  
  586. extern DtEditorErrorCode DtEditorInvokeSpellDialog(
  587.         Widget        widget);
  588.  
  589. extern Boolean DtEditorPasteFromClipboard(
  590.         Widget        widget);
  591.  
  592. extern DtEditorErrorCode DtEditorReplace(
  593.         Widget            widget,
  594.         XmTextPosition        startPos,
  595.         XmTextPosition        endPos,
  596.         DtEditorContentRec    *data);
  597.  
  598. extern DtEditorErrorCode DtEditorReplaceFromFile(
  599.         Widget            widget,
  600.         XmTextPosition        startPos,
  601.         XmTextPosition        endPos,
  602.         char            *fileName);
  603.  
  604. extern void DtEditorReset(
  605.         Widget        widget);
  606.  
  607. extern DtEditorErrorCode DtEditorSaveContentsToFile(
  608.         Widget        widget,
  609.         char        *fileName,
  610.         Boolean        overwriteIfExists,
  611.         Boolean        hardCarriageReturns,
  612.         Boolean        markContentsAsSaved);
  613.  
  614. extern Boolean DtEditorSelectAll(
  615.         Widget        widget);
  616.  
  617. extern DtEditorErrorCode DtEditorSetContents(
  618.         Widget        widget,
  619.         DtEditorContentRec *data);
  620.  
  621. extern DtEditorErrorCode DtEditorSetContentsFromFile(
  622.         Widget        widget,
  623.         char        *fileName);
  624.  
  625. extern void DtEditorSetInsertionPosition(
  626.         Widget        widget,
  627.         XmTextPosition    position);
  628.  
  629. extern void DtEditorTraverseToEditor(
  630.         Widget        widget);
  631.  
  632. extern Boolean DtEditorUndoEdit(
  633.         Widget        widget);
  634.  
  635. extern DtEditorErrorCode DtEditorValidateFileAccess(
  636.         char        *fileName,
  637.         int            accessType);
  638.  
  639.  
  640. #ifdef __cplusplus
  641. }
  642. #endif
  643.  
  644. #endif /* _Dt_Editor_h */
  645.